Skip to content

refactor: delete the dashboard, which nothing could reach - #40

Merged
fiddur merged 2 commits into
developfrom
drop-dead-dashboard
Aug 28, 2026
Merged

refactor: delete the dashboard, which nothing could reach#40
fiddur merged 2 commits into
developfrom
drop-dead-dashboard

Conversation

@fiddur

@fiddur fiddur commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

You could not find commit browsing because it is not reachable. routes/_index.tsx is four lines that unconditionally redirect("/diff") — no condition, no other caller — so Dashboard was rendered by nothing.

Everything behind it was dead the same way, and nothing else referenced any of it:

removed
dashboard.tsx 86 lines, rendered by nothing
commit-list.tsx 100 lines
overview-file-list.tsx 57 lines
use-commits.ts, use-overview.ts only the dashboard called them
queries/commits.ts, queries/overview.ts only those hooks
fetchCommits, fetchOverview, and the Commit / Overview / OverviewFile / CommitsPage types only those queries
/api/overview, /api/commits routes only those wrappers

354 lines.

Deliberately kept: packages/git still exports getRecentCommits, getStagedFiles and getUnstagedFiles. That is a library with its own surface rather than unreachable UI, and this fork tracks what it can offer upstream — the server simply stops importing them.

Also confirmed while looking: /tree has no Ask/Act wiring at all — no onAskThread, no askIsHeard, nothing. Your reading of it was right. Not touched here.

parser 43, git 44, github 21, ui 426, cli 224. Typecheck 0. v0.9.18.

🤖 Generated with Claude Code

https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs

fiddur and others added 2 commits August 27, 2026 17:23
`/` is four lines that unconditionally redirect to `/diff`, with no
condition and no other caller, so the dashboard component was rendered by
nothing. Everything behind it was dead in the same way: the commit list,
the overview file list, `useCommits`, `useOverview`, their query modules,
their fetch wrappers, their types, and the `/api/overview` and
`/api/commits` routes serving them.

354 lines. Nothing else referenced any of it.

`packages/git` keeps `getRecentCommits`, `getStagedFiles` and
`getUnstagedFiles`. That is a library with its own exports rather than
unreachable UI, and this fork tracks what it can offer upstream — the
server just no longer imports them.

v0.9.18.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs
Self-review. The previous commit kept `packages/git`'s exports because
the fork tracked what it could offer upstream. That stopped being true
today, so the boundary is redrawn on the reason that survives.

`getStagedFiles` and `getUnstagedFiles` had no caller and no test, and
`execLines` went with them — internal, unexported, nothing else used it.
`status.ts` keeps `isDirty`, which is used.

`getRecentCommits` stays, for a reason that holds on its own:
`shell-injection.test.ts` is a regression test against command
substitution in a search argument, and deleting the function deletes the
test.

UPSTREAM.md now says upstream is retired and why, so the next reader does
not keep something for a reason that expired.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018PkYQzbsnMihHesafWvXKs
@fiddur
fiddur marked this pull request as ready for review August 28, 2026 06:33
@fiddur
fiddur merged commit e4c0a27 into develop Aug 28, 2026
@fiddur
fiddur deleted the drop-dead-dashboard branch August 28, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant